//
//  ViewController.swift
//  TCSTARNewWork
//
//  Created by w on 05/15/2023.
//  Copyright (c) 2023 w. All rights reserved.
//

import UIKit
import TCSTARNewWork

class ViewController: UIViewController {

    let viewModel = NetWorkViewModel()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        viewModel.sendMsg().subscribe { item in
            
        } onError: { error in
            
        }.disposed(by: viewModel.disposeBag)

        
        viewModel.receiveMsg().subscribe { items in
            
            items.forEach { model in
                
                print(model.sendId)
            }
        } onError: { error in
            
        }.disposed(by: viewModel.disposeBag)
                
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

